Skip to content

fix(packed): restore optional peer boundaries - #280

Merged
ScriptedAlchemy merged 2 commits into
mainfrom
fix/packed-event-runtime
Sep 2, 2026
Merged

fix(packed): restore optional peer boundaries#280
ScriptedAlchemy merged 2 commits into
mainfrom
fix/packed-event-runtime

Conversation

@ScriptedAlchemy

Copy link
Copy Markdown
Owner

Summary

  • keep the packed tool/after request-context probe inside native hook output instead of an invalid Agent.Result.value
  • keep agent-bundle runtime JS and declarations importable without the optional runtime peer
  • split React rendering from event envelope projection so lifecycle replay does not make the public API eagerly require React
  • improve packed failure diagnostics and add a patch changeset

Root cause

Test plan

  • pnpm test:packed (9 files; 23 passed, 1 skipped)
  • pnpm typecheck
  • pnpm lint (0 errors, 0 warnings)
  • event projection + lifecycle replay unit tests (8 passed)
  • route-unit lifecycle + render tests (19 passed)
  • packaged lifecycle replay dev-server integration (1 passed)

Keep event context probes within native hook output and prevent public API declarations from requiring the optional runtime peer.
Separate React rendering from event envelope projection so importing the public API does not load optional React peers.
@changeset-bot

changeset-bot Bot commented Sep 2, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: aefbb84

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
agent-bundle Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@ScriptedAlchemy
ScriptedAlchemy merged commit 9b7f4e2 into main Sep 2, 2026
4 checks passed
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 2, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-02T05:16:48.004140Z aefbb84 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant